from wxPython.wx import *
import Clothing

class MyFrame(wxFrame):
    def __init__(self, parent, id, title):
        wxFrame.__init__(self, parent, id, title,
                         wxPoint(100, 100), wxSize(500, 400))
        EVT_CLOSE(self, self.OnCloseWindow)
        self.panel = wxPanel(self, -1)
        self.bitmap = Clothing.Clothing(bitmap = wxBitmap('red1.bmp'), id = -1, parent = self)
##        EVT_MOUSEWHEEL(self, self.OnMouseWheel)
        
    def OnCloseWindow(self, event):
        self.Destroy()

    def OnMouseWheel(self, event):
        print event.GetWheelRotation()

class MyApp(wxApp):
    def OnInit(self):
        self.frame = MyFrame(None, -1, "TITLE")        
        self.frame.Show(true)
        self.SetTopWindow(self.frame)
        return true
    
app = MyApp(0)
app.MainLoop()

